<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>编辑试卷</title>
    <link rel="stylesheet" th:href="@{/static/css/layui.css}" media="all">
</head>
<body>
    <script th:if="${session.tUser.URole eq '0'}">window.location.href="/index"</script>
    <div id="gb" style="margin: 20px 0 0 40px;">

        <form class="layui-form">

            <input type="hidden" name="pId" th:value="${paperInfo.PId}">

            <div class="layui-form-item">
                <label class="layui-form-label">试卷名</label>
                <div class="layui-input-inline">
                    <input type="text" name="pName" th:value="${paperInfo.PName}" required lay-verify="required" placeholder="请输入题目" autocomplete="off" class="layui-input pName">
                </div>

            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">开考时间</label>
                <div class="layui-input-inline">
                    <input type="text" class="layui-input startTime" th:value="${#dates.format(paperInfo.PBegintime,'yyyy-MM-dd HH:mm:ss')}" name="pBegintime" autocomplete="off" placeholder="yyyy-MM-dd HH:mm:ss">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">考试时长</label>
                <div class="layui-input-inline" style="width: 50px;">
                    <input type="text" class="layui-input pDuration" th:value="${paperInfo.PDuration}" required lay-verify="required" name="pDuration" autocomplete="off">
                </div>
                <div class="layui-form-mid">分钟</div>
            </div>

            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit lay-filter="formDemo" id="butt">立即提交</button>
                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                </div>
            </div>
        </form>
    </div>

    <script type="text/javascript" th:src="@{/static/js/jquery-3.2.1.min.js}"></script>
    <script type="text/javascript" th:src="@{/static/layui.js}"></script>
    <script type="text/javascript" th:src="@{/static/js/mouseClick.js}"></script>
    <script type="text/javascript" th:src="@{/static/js/validation.js}"></script>
    <script type="text/javascript" th:src="@{/static/js/admin/updatePaper.js}"></script>
</body>
</html>